<HTML><HEAD><META CONTENT="text/html; charset=UTF-8" HTTP-EQUIV="Content-Type"/><TITLE>EMMA Coverage Report</TITLE><STYLE TYPE="text/css"> TABLE,TD,TH {border-style:solid; border-color:black;} TD,TH {background:white;margin:0;line-height:100%;padding-left:0.5em;padding-right:0.5em;} TD {border-width:0 1px 0 0;} TH {border-width:1px 1px 1px 0;} TR TD.h {color:red;} TABLE {border-spacing:0; border-collapse:collapse;border-width:0 0 1px 1px;} P,H1,H2,H3,TH {font-family:verdana,arial,sans-serif;font-size:10pt;} TD {font-family:courier,monospace;font-size:10pt;} TABLE.hdft {border-spacing:0;border-collapse:collapse;border-style:none;} TABLE.hdft TH,TABLE.hdft TD {border-style:none;line-height:normal;} TABLE.hdft TH.tl,TABLE.hdft TD.tl {background:#6699CC;color:white;} TABLE.hdft TD.nv {background:#6633DD;color:white;} .nv A:link {color:white;} .nv A:visited {color:white;} .nv A:active {color:yellow;} TABLE.hdft A:link {color:white;} TABLE.hdft A:visited {color:white;} TABLE.hdft A:active {color:yellow;} .in {color:#356085;} TABLE.s TD {padding-left:0.25em;padding-right:0.25em;} TABLE.s TD.l {padding-left:0.25em;padding-right:0.25em;text-align:right;background:#F0F0F0;} TABLE.s TR.z TD {background:#FF9999;} TABLE.s TR.p TD {background:#FFFF88;} TABLE.s TR.c TD {background:#CCFFCC;} A:link {color:#0000EE;text-decoration:none;} A:visited {color:#0000EE;text-decoration:none;} A:hover {color:#0000EE;text-decoration:underline;} TABLE.cn {border-width:0 0 1px 0;} TABLE.s {border-width:1px 0 1px 1px;} TD.h {color:red;border-width:0 1px 0 0;} TD.f {border-width:0 1px 0 1px;} TD.hf {color:red;border-width:0 1px 0 1px;} TH.f {border-width:1px 1px 1px 1px;} TR.cis TD {background:#F0F0F0;} TR.cis TD {border-width:1px 1px 1px 0;} TR.cis TD.h {color:red;border-width:1px 1px 1px 0;} TR.cis TD.f {border-width:1px 1px 1px 1px;} TR.cis TD.hf {color:red;border-width:1px 1px 1px 1px;} TD.b {border-style:none;background:transparent;line-height:50%;}  TD.bt {border-width:1px 0 0 0;background:transparent;line-height:50%;} TR.o TD {background:#F0F0F0;}TABLE.it {border-style:none;}TABLE.it TD,TABLE.it TH {border-style:none;}</STYLE></HEAD><BODY><TABLE CLASS="hdft" CELLSPACING="0" WIDTH="100%"><TR><TH CLASS="tl"><A HREF="http://www.eclemma.org/">EMMA</A> Coverage Report (generated Thu Jun 09 09:13:46 CEST 2011)</TH></TR><TR><TD CLASS="nv">[<A HREF="../aktualny.html">all classes</A>][<A HREF="3.html">com.googlecode.project4uz.encoder</A>]</TD></TR></TABLE><H2>COVERAGE SUMMARY FOR SOURCE FILE [<SPAN CLASS="in">RioWriter.java</SPAN>]</H2><TABLE CELLSPACING="0" WIDTH="100%"><TR><TH>name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD>RioWriter.java</TD><TD>100% (5/5)</TD><TD>87%  (33/38)</TD><TD>84%  (549/652)</TD><TD>80%  (82/102)</TD></TR></TABLE><H3>COVERAGE BREAKDOWN BY CLASS AND METHOD</H3><TABLE CLASS="cn" CELLSPACING="0" WIDTH="100%"><TR><TH CLASS="f">name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#0">RioWriter</A></TD><TD>100% (1/1)</TD><TD>70%  (7/10)</TD><TD CLASS="h">45%  (47/105)</TD><TD CLASS="h">45%  (13/29)</TD></TR><TR><TD CLASS="f"><A HREF="#1">flush (): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/36)</TD><TD CLASS="h">0%   (0/8)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#2">writeExpression (String, String, String, String): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/7)</TD><TD CLASS="h">0%   (0/2)</TD></TR><TR><TD CLASS="f"><A HREF="#3">writePointer (String, String): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/7)</TD><TD CLASS="h">0%   (0/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#4">close (): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD CLASS="h">56%  (5/9)</TD><TD CLASS="h">50%  (2/4)</TD></TR><TR><TD CLASS="f"><A HREF="#5">open (): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD CLASS="h">56%  (5/9)</TD><TD CLASS="h">50%  (2/4)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#6">RioWriter (RDFFormat, OutputStream): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (11/11)</TD><TD>100% (4/4)</TD></TR><TR><TD CLASS="f"><A HREF="#0">access$0 (RioWriter): int</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (3/3)</TD><TD>100% (1/1)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#0">access$1 (RioWriter, int): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (4/4)</TD><TD>100% (1/1)</TD></TR><TR><TD CLASS="f"><A HREF="#9">writeClass (String): RioWriter$Reference</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (15/15)</TD><TD>100% (3/3)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#a">writeComment (String): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (4/4)</TD><TD>100% (2/2)</TD></TR><TR><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#b">RioWriter$Reference$Collection</A></TD><TD>100% (1/1)</TD><TD>75%  (3/4)</TD><TD CLASS="h">76%  (71/94)</TD><TD>82%  (9/11)</TD></TR><TR><TD CLASS="f"><A HREF="#c">writePrimitive (String): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/23)</TD><TD CLASS="h">0%   (0/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#d">RioWriter$Reference$Collection (RioWriter$Reference, String, String): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (35/35)</TD><TD>100% (5/5)</TD></TR><TR><TD CLASS="f"><A HREF="#b">access$0 (RioWriter$Reference$Collection): String</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (3/3)</TD><TD>100% (1/1)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#f">writeReference (): RioWriter$Reference</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (33/33)</TD><TD>100% (3/3)</TD></TR><TR><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#10">RioWriter$Reference$Map</A></TD><TD>100% (1/1)</TD><TD>83%  (5/6)</TD><TD>85%  (123/145)</TD><TD>88%  (15/17)</TD></TR><TR><TD CLASS="f"><A HREF="#11">writePrimitiveValue (String): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/22)</TD><TD CLASS="h">0%   (0/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#12">RioWriter$Reference$Map (RioWriter$Reference, String, String, String): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (42/42)</TD><TD>100% (6/6)</TD></TR><TR><TD CLASS="f"><A HREF="#10">access$0 (RioWriter$Reference$Map): String</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (3/3)</TD><TD>100% (1/1)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#14">writeKey (): RioWriter$Reference</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (28/28)</TD><TD>100% (3/3)</TD></TR><TR><TD CLASS="f"><A HREF="#15">writePrimitiveKey (String): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (17/17)</TD><TD>100% (2/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#16">writeValue (): RioWriter$Reference</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (33/33)</TD><TD>100% (3/3)</TD></TR><TR><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#17">RioWriter$Reference</A></TD><TD>100% (1/1)</TD><TD>100% (13/13)</TD><TD>100% (152/152)</TD><TD>100% (29/29)</TD></TR><TR><TD CLASS="f"><A HREF="#18">RioWriter$Reference (RioWriter, String): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (24/24)</TD><TD>100% (3/3)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#19">RioWriter$Reference (RioWriter, char []): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (12/12)</TD><TD>100% (3/3)</TD></TR><TR><TD CLASS="f"><A HREF="#1a">access$0 (RioWriter$Reference): String</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (3/3)</TD><TD>100% (1/1)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#17">access$1 (RioWriter$Reference): RioWriter</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (3/3)</TD><TD>100% (1/1)</TD></TR><TR><TD CLASS="f"><A HREF="#1c">getID (): String</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (3/3)</TD><TD>100% (1/1)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#1d">writeArray (String, String, int, int): RioWriter$Reference$Array</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (18/18)</TD><TD>100% (3/3)</TD></TR><TR><TD CLASS="f"><A HREF="#1e">writeCollection (String, String, String): RioWriter$Reference$Collection</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (17/17)</TD><TD>100% (3/3)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#1f">writeMap (String, String, String, String): RioWriter$Reference$Map</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (18/18)</TD><TD>100% (3/3)</TD></TR><TR><TD CLASS="f"><A HREF="#20">writeNull (String, String): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (9/9)</TD><TD>100% (2/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#21">writePointer (String, String): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (9/9)</TD><TD>100% (2/2)</TD></TR><TR><TD CLASS="f"><A HREF="#22">writePrimitive (String, String, String): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (9/9)</TD><TD>100% (2/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#23">writeReference (String, String): RioWriter$Reference</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (18/18)</TD><TD>100% (3/3)</TD></TR><TR><TD CLASS="f"><A HREF="#24">writeSerial (String): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (9/9)</TD><TD>100% (2/2)</TD></TR><TR><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#25">RioWriter$Reference$Array</A></TD><TD>100% (1/1)</TD><TD>100% (5/5)</TD><TD>100% (156/156)</TD><TD>100% (16/16)</TD></TR><TR><TD CLASS="f"><A HREF="#25">RioWriter$Reference$Array (RioWriter$Reference, String, int, int): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (42/42)</TD><TD>100% (6/6)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#27">writeArray (int): RioWriter$Reference$Array</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (36/36)</TD><TD>100% (3/3)</TD></TR><TR><TD CLASS="f"><A HREF="#28">writeNull (): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (22/22)</TD><TD>100% (2/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#29">writePrimitive (String): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (23/23)</TD><TD>100% (2/2)</TD></TR><TR><TD CLASS="f"><A HREF="#2a">writeReference (): RioWriter$Reference</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (33/33)</TD><TD>100% (3/3)</TD></TR></TABLE><P></P><TABLE CLASS="s" CELLSPACING="0" WIDTH="100%"><TR><TD CLASS="l">1</TD><TD>package com.googlecode.project4uz.encoder;</TD></TR><TR><TD CLASS="l">2</TD><TD> </TD></TR><TR><TD CLASS="l">3</TD><TD>import java.io.OutputStream;</TD></TR><TR><TD CLASS="l">4</TD><TD> </TD></TR><TR><TD CLASS="l">5</TD><TD>import org.openrdf.rio.RDFFormat;</TD></TR><TR><TD CLASS="l">6</TD><TD>import org.openrdf.rio.RDFHandlerException;</TD></TR><TR><TD CLASS="l">7</TD><TD>import org.openrdf.rio.Rio;</TD></TR><TR><TD CLASS="l">8</TD><TD> </TD></TR><TR><TD CLASS="l">9</TD><TD>/**</TD></TR><TR><TD CLASS="l">10</TD><TD> * Wykorzystanie biblioteki Rio do zapisu plikow RDF.</TD></TR><TR><TD CLASS="l">11</TD><TD> * </TD></TR><TR><TD CLASS="l">12</TD><TD> * @author Daniel Kur</TD></TR><TR><TD CLASS="l">13</TD><TD> */</TD></TR><TR><TD CLASS="l">14</TD><TD>class RioWriter extends RioWriterHelper</TD></TR><TR><TD CLASS="l"><A NAME="0">15</A></TD><TD>{        </TD></TR><TR><TD CLASS="l">16</TD><TD>        /**</TD></TR><TR><TD CLASS="l">17</TD><TD>         * Licznik zmiennych typu referencyjnego.</TD></TR><TR><TD CLASS="l">18</TD><TD>         */</TD></TR><TR CLASS="c"><TD CLASS="l">19</TD><TD>        private int id = 0;</TD></TR><TR><TD CLASS="l">20</TD><TD> </TD></TR><TR><TD CLASS="l">21</TD><TD>        /**</TD></TR><TR><TD CLASS="l">22</TD><TD>         * Tworzy obiekt writera obiektow do formatu RDF.</TD></TR><TR><TD CLASS="l">23</TD><TD>         * </TD></TR><TR><TD CLASS="l">24</TD><TD>         * @param format - format RDF jakim zapisujemy do strumienia.</TD></TR><TR><TD CLASS="l"><A NAME="6">25</A></TD><TD>         * @param output - strumien wyjsciowy dla wyniku.</TD></TR><TR><TD CLASS="l">26</TD><TD>         */</TD></TR><TR><TD CLASS="l">27</TD><TD>        RioWriter (final RDFFormat format, final OutputStream output)</TD></TR><TR><TD CLASS="l">28</TD><TD>        {</TD></TR><TR CLASS="c"><TD CLASS="l">29</TD><TD>                super (Rio.createWriter (format, output));</TD></TR><TR CLASS="c"><TD CLASS="l">30</TD><TD>                this.open ();</TD></TR><TR CLASS="c"><TD CLASS="l">31</TD><TD>        }</TD></TR><TR><TD CLASS="l">32</TD><TD> </TD></TR><TR><TD CLASS="l">33</TD><TD>        /**</TD></TR><TR><TD CLASS="l"><A NAME="17">34</A></TD><TD>         * Pozwala na zapis referencji do strumienia w formacie RDF.</TD></TR><TR><TD CLASS="l">35</TD><TD>         * </TD></TR><TR><TD CLASS="l">36</TD><TD>         * @author Daniel Kur</TD></TR><TR><TD CLASS="l">37</TD><TD>         */</TD></TR><TR CLASS="c"><TD CLASS="l">38</TD><TD>        protected final class Reference</TD></TR><TR><TD CLASS="l"><A NAME="1a">39</A></TD><TD>        {</TD></TR><TR><TD CLASS="l">40</TD><TD>                /**</TD></TR><TR><TD CLASS="l">41</TD><TD>                 * Unikalny identyfikator dla referencji. </TD></TR><TR><TD CLASS="l">42</TD><TD>                 */</TD></TR><TR CLASS="c"><TD CLASS="l">43</TD><TD>                private final String ID;</TD></TR><TR><TD CLASS="l">44</TD><TD>                </TD></TR><TR><TD CLASS="l">45</TD><TD>                /**</TD></TR><TR><TD CLASS="l">46</TD><TD>                 * Reprezentuje obiekt referencyjny w formacie RDF.</TD></TR><TR><TD CLASS="l">47</TD><TD>                 * </TD></TR><TR><TD CLASS="l">48</TD><TD>                 * @param type - nazwa typu referencyjnego.</TD></TR><TR><TD CLASS="l"><A NAME="18">49</A></TD><TD>                 */</TD></TR><TR CLASS="c"><TD CLASS="l">50</TD><TD>                protected Reference (final String type)</TD></TR><TR><TD CLASS="l">51</TD><TD>                {</TD></TR><TR CLASS="c"><TD CLASS="l">52</TD><TD>                        this.ID = type + &#34;#ID&#34; + id++;</TD></TR><TR CLASS="c"><TD CLASS="l">53</TD><TD>                }</TD></TR><TR><TD CLASS="l">54</TD><TD>                                </TD></TR><TR><TD CLASS="l">55</TD><TD>                /**</TD></TR><TR><TD CLASS="l">56</TD><TD>                 * Reprezentuje obiekt referencyjny w formacie RDF.</TD></TR><TR><TD CLASS="l">57</TD><TD>                 * </TD></TR><TR><TD CLASS="l">58</TD><TD>                 * @param reference - istniejacy typ referencyjny.</TD></TR><TR><TD CLASS="l"><A NAME="19">59</A></TD><TD>                 */</TD></TR><TR CLASS="c"><TD CLASS="l">60</TD><TD>                protected Reference (final char[] reference)</TD></TR><TR><TD CLASS="l">61</TD><TD>                {</TD></TR><TR CLASS="c"><TD CLASS="l">62</TD><TD>                        this.ID = new String (reference);</TD></TR><TR CLASS="c"><TD CLASS="l">63</TD><TD>                }</TD></TR><TR><TD CLASS="l">64</TD><TD>                </TD></TR><TR><TD CLASS="l">65</TD><TD>                /**</TD></TR><TR><TD CLASS="l">66</TD><TD>                 * Pobiera wartosc identyfikatora referencji.</TD></TR><TR><TD CLASS="l">67</TD><TD>                 * </TD></TR><TR><TD CLASS="l"><A NAME="1c">68</A></TD><TD>                 * @return unikalny identyfikator referencji.</TD></TR><TR><TD CLASS="l">69</TD><TD>                 */</TD></TR><TR><TD CLASS="l">70</TD><TD>                protected String getID ()</TD></TR><TR><TD CLASS="l">71</TD><TD>                {</TD></TR><TR CLASS="c"><TD CLASS="l">72</TD><TD>                        return ID;</TD></TR><TR><TD CLASS="l">73</TD><TD>                }</TD></TR><TR><TD CLASS="l">74</TD><TD> </TD></TR><TR><TD CLASS="l">75</TD><TD>                /**</TD></TR><TR><TD CLASS="l">76</TD><TD>                 * Dodaje zmienna primitywna do referencji.</TD></TR><TR><TD CLASS="l">77</TD><TD>                 * </TD></TR><TR><TD CLASS="l">78</TD><TD>                 * @param nazme - nazwa zmiennej primitywnej.</TD></TR><TR><TD CLASS="l">79</TD><TD>                 * @param type - typ zmiennej primitywnej.</TD></TR><TR><TD CLASS="l"><A NAME="22">80</A></TD><TD>                 * @param value - wartosc zmiennej primitywnej.</TD></TR><TR><TD CLASS="l">81</TD><TD>                 */</TD></TR><TR><TD CLASS="l">82</TD><TD>                protected final void writePrimitive (final String name, final String type, final String value)</TD></TR><TR><TD CLASS="l">83</TD><TD>                {</TD></TR><TR CLASS="c"><TD CLASS="l">84</TD><TD>                        addPrimitive (ID, type, name, value);</TD></TR><TR CLASS="c"><TD CLASS="l">85</TD><TD>                }</TD></TR><TR><TD CLASS="l">86</TD><TD> </TD></TR><TR><TD CLASS="l">87</TD><TD>                /**</TD></TR><TR><TD CLASS="l">88</TD><TD>                 * Dodaje prywatne pole serialVersionUID z serializowanej klasy.</TD></TR><TR><TD CLASS="l">89</TD><TD>                 * </TD></TR><TR><TD CLASS="l"><A NAME="24">90</A></TD><TD>                 * @param value - wartosc pola serialVersionUID.</TD></TR><TR><TD CLASS="l">91</TD><TD>                 */</TD></TR><TR><TD CLASS="l">92</TD><TD>                protected final void writeSerial (final String value)</TD></TR><TR><TD CLASS="l">93</TD><TD>                {</TD></TR><TR CLASS="c"><TD CLASS="l">94</TD><TD>                        addPrimitive (ID, &#34;serial&#34;, &#34;serialVersionUID&#34;, value);</TD></TR><TR CLASS="c"><TD CLASS="l">95</TD><TD>                }</TD></TR><TR><TD CLASS="l">96</TD><TD> </TD></TR><TR><TD CLASS="l">97</TD><TD>                /**</TD></TR><TR><TD CLASS="l">98</TD><TD>                 * Dodaje zmienna referencyjna do referencji.</TD></TR><TR><TD CLASS="l">99</TD><TD>                 * </TD></TR><TR><TD CLASS="l">100</TD><TD>                 * @param name - nazwa referencji.</TD></TR><TR><TD CLASS="l">101</TD><TD>                 * @param type - nazwa typu referencji.</TD></TR><TR><TD CLASS="l"><A NAME="23">102</A></TD><TD>                 * @return zmienna referencyjna w reprezentacji RDF.</TD></TR><TR><TD CLASS="l">103</TD><TD>                 */</TD></TR><TR><TD CLASS="l">104</TD><TD>                protected final Reference writeReference (final String name, final String type)</TD></TR><TR><TD CLASS="l">105</TD><TD>                {</TD></TR><TR CLASS="c"><TD CLASS="l">106</TD><TD>                        Reference ref = new Reference (type);</TD></TR><TR CLASS="c"><TD CLASS="l">107</TD><TD>                        addReference (ID, name, &#34;reference&#34;, ref.ID);</TD></TR><TR CLASS="c"><TD CLASS="l">108</TD><TD>                        return ref;</TD></TR><TR><TD CLASS="l">109</TD><TD>                }</TD></TR><TR><TD CLASS="l">110</TD><TD> </TD></TR><TR><TD CLASS="l">111</TD><TD>                /**</TD></TR><TR><TD CLASS="l">112</TD><TD>                 * Dodaje wskaznik na juz istniejaca referencje.</TD></TR><TR><TD CLASS="l">113</TD><TD>                 * </TD></TR><TR><TD CLASS="l">114</TD><TD>                 * @param name - nazwa referencji.</TD></TR><TR><TD CLASS="l"><A NAME="21">115</A></TD><TD>                 * @param identifier - id referencja na ktora ma wskazywac.</TD></TR><TR><TD CLASS="l">116</TD><TD>                 */</TD></TR><TR><TD CLASS="l">117</TD><TD>                protected final void writePointer (final String name, final String identifier)</TD></TR><TR><TD CLASS="l">118</TD><TD>                {</TD></TR><TR CLASS="c"><TD CLASS="l">119</TD><TD>                        addReference (ID, name, &#34;reference&#34;, identifier);</TD></TR><TR CLASS="c"><TD CLASS="l">120</TD><TD>                }</TD></TR><TR><TD CLASS="l">121</TD><TD> </TD></TR><TR><TD CLASS="l">122</TD><TD>                /**</TD></TR><TR><TD CLASS="l">123</TD><TD>                 * Dodaje pusta referencje.</TD></TR><TR><TD CLASS="l">124</TD><TD>                 * </TD></TR><TR><TD CLASS="l">125</TD><TD>                 * @param name - nazwa referencji.</TD></TR><TR><TD CLASS="l"><A NAME="20">126</A></TD><TD>                 * @param type - nazwa typu referencji.</TD></TR><TR><TD CLASS="l">127</TD><TD>                 */</TD></TR><TR><TD CLASS="l">128</TD><TD>                protected final void writeNull (final String name, final String type)</TD></TR><TR><TD CLASS="l">129</TD><TD>                {</TD></TR><TR CLASS="c"><TD CLASS="l">130</TD><TD>                        addReference (ID, name, &#34;reference&#34;, &#34;null&#34;);</TD></TR><TR CLASS="c"><TD CLASS="l">131</TD><TD>                }</TD></TR><TR><TD CLASS="l">132</TD><TD> </TD></TR><TR><TD CLASS="l">133</TD><TD>                /**</TD></TR><TR><TD CLASS="l">134</TD><TD>                 * Dodaje zmienna tablicowa do referencji.</TD></TR><TR><TD CLASS="l">135</TD><TD>                 * </TD></TR><TR><TD CLASS="l">136</TD><TD>                 * @param name - nazwa zmiennej tablicowej.</TD></TR><TR><TD CLASS="l">137</TD><TD>                 * @param type - typ zmiennej tablicowej.</TD></TR><TR><TD CLASS="l">138</TD><TD>                 * @param length - ilosc elementow w tablicy.</TD></TR><TR><TD CLASS="l">139</TD><TD>                 * @param dimension - ilosc wymiarow tablicy.</TD></TR><TR><TD CLASS="l"><A NAME="1d">140</A></TD><TD>                 * @return zmienna tablicowa w reprezentacji RDF.</TD></TR><TR><TD CLASS="l">141</TD><TD>                 */</TD></TR><TR><TD CLASS="l">142</TD><TD>                protected final Array writeArray (final String name, final String type, int size, int dimension)</TD></TR><TR><TD CLASS="l">143</TD><TD>                {</TD></TR><TR CLASS="c"><TD CLASS="l">144</TD><TD>                        Array array = new Array (type, size, dimension);</TD></TR><TR CLASS="c"><TD CLASS="l">145</TD><TD>                        addArray (ID, name, array.ID);</TD></TR><TR CLASS="c"><TD CLASS="l">146</TD><TD>                        return array;</TD></TR><TR><TD CLASS="l">147</TD><TD>                }</TD></TR><TR><TD CLASS="l">148</TD><TD> </TD></TR><TR><TD CLASS="l">149</TD><TD>                /**</TD></TR><TR><TD CLASS="l">150</TD><TD>                 * Dodaje kolekcje do referencji.</TD></TR><TR><TD CLASS="l">151</TD><TD>                 * </TD></TR><TR><TD CLASS="l">152</TD><TD>                 * @param type - typ kolekcji.</TD></TR><TR><TD CLASS="l">153</TD><TD>                 * @param generic - typ generyczny.</TD></TR><TR><TD CLASS="l"><A NAME="1e">154</A></TD><TD>                 * @return kolekcja w reprezentacji RDF. </TD></TR><TR><TD CLASS="l">155</TD><TD>                 */</TD></TR><TR><TD CLASS="l">156</TD><TD>                protected final Collection writeCollection (final String name, final String type, final String generic)</TD></TR><TR><TD CLASS="l">157</TD><TD>                {</TD></TR><TR CLASS="c"><TD CLASS="l">158</TD><TD>                        Collection collection = new Collection (type, generic);</TD></TR><TR CLASS="c"><TD CLASS="l">159</TD><TD>                        addCollection (ID, name, collection.ID);</TD></TR><TR CLASS="c"><TD CLASS="l">160</TD><TD>                        return collection;</TD></TR><TR><TD CLASS="l">161</TD><TD>                }</TD></TR><TR><TD CLASS="l">162</TD><TD> </TD></TR><TR><TD CLASS="l">163</TD><TD>                /**</TD></TR><TR><TD CLASS="l">164</TD><TD>                 * Dodaje mape do referencji.</TD></TR><TR><TD CLASS="l">165</TD><TD>                 * </TD></TR><TR><TD CLASS="l">166</TD><TD>                 * @param type - typ mapy.</TD></TR><TR><TD CLASS="l">167</TD><TD>                 * @param key - typ klucza.</TD></TR><TR><TD CLASS="l">168</TD><TD>                 * @param value - typ wartosci.</TD></TR><TR><TD CLASS="l"><A NAME="1f">169</A></TD><TD>                 * @return mapa w reprezentacji RDF.</TD></TR><TR><TD CLASS="l">170</TD><TD>                 */</TD></TR><TR><TD CLASS="l">171</TD><TD>                protected final Map writeMap (final String name, final String type, final String key, final String value)</TD></TR><TR><TD CLASS="l">172</TD><TD>                {</TD></TR><TR CLASS="c"><TD CLASS="l">173</TD><TD>                        Map map = new Map (type, key, value);</TD></TR><TR CLASS="c"><TD CLASS="l">174</TD><TD>                        addMap (ID, name, map.ID);</TD></TR><TR CLASS="c"><TD CLASS="l">175</TD><TD>                        return map;</TD></TR><TR><TD CLASS="l">176</TD><TD>                }</TD></TR><TR><TD CLASS="l">177</TD><TD> </TD></TR><TR><TD CLASS="l">178</TD><TD>                /**</TD></TR><TR><TD CLASS="l">179</TD><TD>                 * Pozwala na zapis tablic do strumienia w formacie RDF.</TD></TR><TR><TD CLASS="l">180</TD><TD>                 * </TD></TR><TR><TD CLASS="l">181</TD><TD>                 * @author Daniel Kur</TD></TR><TR><TD CLASS="l">182</TD><TD>                 */</TD></TR><TR><TD CLASS="l">183</TD><TD>                protected class Array</TD></TR><TR><TD CLASS="l">184</TD><TD>                {</TD></TR><TR><TD CLASS="l">185</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">186</TD><TD>                         * Unikalny identyfikator dla tablicy. </TD></TR><TR><TD CLASS="l">187</TD><TD>                         */</TD></TR><TR><TD CLASS="l">188</TD><TD>                        protected final String ID;</TD></TR><TR><TD CLASS="l">189</TD><TD>                        </TD></TR><TR><TD CLASS="l">190</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">191</TD><TD>                         * Typ zmiennej tablicowej. </TD></TR><TR><TD CLASS="l">192</TD><TD>                         */</TD></TR><TR><TD CLASS="l">193</TD><TD>                        protected final String TYPE;</TD></TR><TR><TD CLASS="l">194</TD><TD>                        </TD></TR><TR><TD CLASS="l">195</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">196</TD><TD>                         * Licznik ilosci wymiarow w tablicy. </TD></TR><TR><TD CLASS="l">197</TD><TD>                         */</TD></TR><TR><TD CLASS="l">198</TD><TD>                        protected int dimension;</TD></TR><TR><TD CLASS="l">199</TD><TD>                        </TD></TR><TR><TD CLASS="l">200</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">201</TD><TD>                         * Licznik ilosci elementow w tablicy. </TD></TR><TR><TD CLASS="l">202</TD><TD>                         */</TD></TR><TR><TD CLASS="l">203</TD><TD>                        protected int size;</TD></TR><TR><TD CLASS="l">204</TD><TD> </TD></TR><TR><TD CLASS="l">205</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">206</TD><TD>                         * Reprezentuje obiekt tablicowy w formacie RDF.</TD></TR><TR><TD CLASS="l">207</TD><TD>                         * </TD></TR><TR><TD CLASS="l">208</TD><TD>                         * @param type - typ zmiennej tablicowej.</TD></TR><TR><TD CLASS="l">209</TD><TD>                         * @param length - ilosc elementow w tablicy.</TD></TR><TR><TD CLASS="l">210</TD><TD>                         * @param dimension - ilosc wymiarow tablicy. </TD></TR><TR><TD CLASS="l">211</TD><TD>                         */</TD></TR><TR CLASS="c"><TD CLASS="l">212</TD><TD>                        protected Array (final String type, int length, int dimension)</TD></TR><TR><TD CLASS="l">213</TD><TD>                        {</TD></TR><TR CLASS="c"><TD CLASS="l"><A NAME="25">214</A></TD><TD>                                this.ID = type + &#34;#ID&#34; + id++ + &#34;/D&#34; + dimension + &#34;/S&#34; + length;</TD></TR><TR CLASS="c"><TD CLASS="l">215</TD><TD>                                this.TYPE = type;</TD></TR><TR CLASS="c"><TD CLASS="l">216</TD><TD>                                this.size = 0;</TD></TR><TR CLASS="c"><TD CLASS="l">217</TD><TD>                                this.dimension = dimension;</TD></TR><TR CLASS="c"><TD CLASS="l">218</TD><TD>                        }</TD></TR><TR><TD CLASS="l">219</TD><TD> </TD></TR><TR><TD CLASS="l">220</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">221</TD><TD>                         * Dodaje dodatkowy wymiar do tablicy.</TD></TR><TR><TD CLASS="l">222</TD><TD>                         * </TD></TR><TR><TD CLASS="l">223</TD><TD>                         * @param size - ilosc elementow w tablicy.</TD></TR><TR><TD CLASS="l"><A NAME="27">224</A></TD><TD>                         * @return zmienna tablicowa w reprezentacji RDF.</TD></TR><TR><TD CLASS="l">225</TD><TD>                         */</TD></TR><TR><TD CLASS="l">226</TD><TD>                        protected final Array writeArray ( int size )</TD></TR><TR><TD CLASS="l">227</TD><TD>                        {</TD></TR><TR CLASS="c"><TD CLASS="l">228</TD><TD>                                Array array = new Array (TYPE, size, dimension-1);</TD></TR><TR CLASS="c"><TD CLASS="l">229</TD><TD>                                addArray ( ID, &#34;_&#34;+this.size++, array.ID );</TD></TR><TR CLASS="c"><TD CLASS="l">230</TD><TD>                                return array;</TD></TR><TR><TD CLASS="l">231</TD><TD>                        }</TD></TR><TR><TD CLASS="l">232</TD><TD> </TD></TR><TR><TD CLASS="l">233</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">234</TD><TD>                         * Dodaje zmienna primitywna do tablicy.</TD></TR><TR><TD CLASS="l">235</TD><TD>                         * </TD></TR><TR><TD CLASS="l"><A NAME="29">236</A></TD><TD>                         * @param value - wartosc zmiennej primitywnej.</TD></TR><TR><TD CLASS="l">237</TD><TD>                         */</TD></TR><TR><TD CLASS="l">238</TD><TD>                        protected final void writePrimitive ( final String value )</TD></TR><TR><TD CLASS="l">239</TD><TD>                        {</TD></TR><TR CLASS="c"><TD CLASS="l">240</TD><TD>                                addPrimitive ( ID, TYPE, &#34;_&#34;+size++, value );</TD></TR><TR CLASS="c"><TD CLASS="l">241</TD><TD>                        }</TD></TR><TR><TD CLASS="l">242</TD><TD> </TD></TR><TR><TD CLASS="l">243</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">244</TD><TD>                         * Dodaje zmienna referencyjna do tablicy.</TD></TR><TR><TD CLASS="l">245</TD><TD>                         * </TD></TR><TR><TD CLASS="l"><A NAME="2a">246</A></TD><TD>                         * @return zmienna referencyjna w reprezentacji RDF.</TD></TR><TR><TD CLASS="l">247</TD><TD>                         */</TD></TR><TR><TD CLASS="l">248</TD><TD>                        protected final Reference writeReference ()</TD></TR><TR><TD CLASS="l">249</TD><TD>                        {</TD></TR><TR CLASS="c"><TD CLASS="l">250</TD><TD>                                Reference ref = new Reference (TYPE);</TD></TR><TR CLASS="c"><TD CLASS="l">251</TD><TD>                                addReference ( ID, &#34;_&#34;+size++, &#34;reference&#34;, ref.ID );</TD></TR><TR CLASS="c"><TD CLASS="l">252</TD><TD>                                return ref;</TD></TR><TR><TD CLASS="l">253</TD><TD>                        }</TD></TR><TR><TD CLASS="l">254</TD><TD> </TD></TR><TR><TD CLASS="l">255</TD><TD>                        /**</TD></TR><TR><TD CLASS="l"><A NAME="28">256</A></TD><TD>                         * Dodaje pusta referencje/wartosc do tablicy.</TD></TR><TR><TD CLASS="l">257</TD><TD>                         */</TD></TR><TR><TD CLASS="l">258</TD><TD>                        protected final void writeNull ()</TD></TR><TR><TD CLASS="l">259</TD><TD>                        {</TD></TR><TR CLASS="c"><TD CLASS="l">260</TD><TD>                                addReference ( ID, &#34;_&#34;+size++, &#34;reference&#34;, &#34;null&#34; );</TD></TR><TR CLASS="c"><TD CLASS="l">261</TD><TD>                        }</TD></TR><TR><TD CLASS="l">262</TD><TD>                }</TD></TR><TR><TD CLASS="l">263</TD><TD> </TD></TR><TR><TD CLASS="l">264</TD><TD>                /**</TD></TR><TR><TD CLASS="l">265</TD><TD>                 * Pozwala na zapis kolekcji do strumienia w formacie RDF.</TD></TR><TR><TD CLASS="l">266</TD><TD>                 * </TD></TR><TR><TD CLASS="l">267</TD><TD>                 * @author Daniel Kur</TD></TR><TR><TD CLASS="l">268</TD><TD>                 */</TD></TR><TR><TD CLASS="l">269</TD><TD>                protected class Collection</TD></TR><TR><TD CLASS="l"><A NAME="b">270</A></TD><TD>                {</TD></TR><TR><TD CLASS="l">271</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">272</TD><TD>                         * Unikalny identyfikator dla kolekcji. </TD></TR><TR><TD CLASS="l">273</TD><TD>                         */</TD></TR><TR CLASS="c"><TD CLASS="l">274</TD><TD>                        private final String ID;</TD></TR><TR><TD CLASS="l">275</TD><TD>                        </TD></TR><TR><TD CLASS="l">276</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">277</TD><TD>                         * Typ generyczny kolekcji. </TD></TR><TR><TD CLASS="l">278</TD><TD>                         */</TD></TR><TR><TD CLASS="l">279</TD><TD>                        private final String GENE;</TD></TR><TR><TD CLASS="l">280</TD><TD>                        </TD></TR><TR><TD CLASS="l">281</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">282</TD><TD>                         * Licznik ilosci elementow w kolekcji. </TD></TR><TR><TD CLASS="l">283</TD><TD>                         */</TD></TR><TR CLASS="c"><TD CLASS="l">284</TD><TD>                        private int size = 1;</TD></TR><TR><TD CLASS="l">285</TD><TD> </TD></TR><TR><TD CLASS="l">286</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">287</TD><TD>                         * Reprezentuje kolekcje w formacie RDF.</TD></TR><TR><TD CLASS="l">288</TD><TD>                         * </TD></TR><TR><TD CLASS="l">289</TD><TD>                         * @param type - typ kolekcji.</TD></TR><TR><TD CLASS="l">290</TD><TD>                         * @param generic - typ generyczny. </TD></TR><TR><TD CLASS="l">291</TD><TD>                         */</TD></TR><TR CLASS="c"><TD CLASS="l"><A NAME="d">292</A></TD><TD>                        protected Collection (final String type, final String generic)</TD></TR><TR><TD CLASS="l">293</TD><TD>                        {</TD></TR><TR CLASS="c"><TD CLASS="l">294</TD><TD>                                this.ID = type + &#34;,&#34; + generic + &#34;#ID&#34; + id++;</TD></TR><TR CLASS="c"><TD CLASS="l">295</TD><TD>                                this.GENE = generic;</TD></TR><TR CLASS="c"><TD CLASS="l">296</TD><TD>                        }</TD></TR><TR><TD CLASS="l">297</TD><TD> </TD></TR><TR><TD CLASS="l">298</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">299</TD><TD>                         * Dodaje zmienna referencyjna do kolekcji.</TD></TR><TR><TD CLASS="l">300</TD><TD>                         * </TD></TR><TR><TD CLASS="l"><A NAME="f">301</A></TD><TD>                         * @return zmienna referencyjna w reprezentacji RDF.</TD></TR><TR><TD CLASS="l">302</TD><TD>                         */</TD></TR><TR><TD CLASS="l">303</TD><TD>                        protected final Reference writeReference ()</TD></TR><TR><TD CLASS="l">304</TD><TD>                        {</TD></TR><TR CLASS="c"><TD CLASS="l">305</TD><TD>                                Reference ref = new Reference (GENE);</TD></TR><TR CLASS="c"><TD CLASS="l">306</TD><TD>                                addReference ( ID, &#34;_&#34;+size++, &#34;reference&#34;, ref.ID );</TD></TR><TR CLASS="c"><TD CLASS="l">307</TD><TD>                                return ref;</TD></TR><TR><TD CLASS="l">308</TD><TD>                        }</TD></TR><TR><TD CLASS="l">309</TD><TD> </TD></TR><TR><TD CLASS="l">310</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">311</TD><TD>                         * Dodaje zmienna referencyjna opakowywujaca typ primitywny do kolekcji.</TD></TR><TR><TD CLASS="l">312</TD><TD>                         * </TD></TR><TR><TD CLASS="l"><A NAME="c">313</A></TD><TD>                         * @param value - wartosc zmiennej..</TD></TR><TR><TD CLASS="l">314</TD><TD>                         */</TD></TR><TR><TD CLASS="l">315</TD><TD>                        protected final void writePrimitive ( final String value )</TD></TR><TR><TD CLASS="l">316</TD><TD>                        {</TD></TR><TR CLASS="z"><TD CLASS="l">317</TD><TD>                                addPrimitive ( ID, GENE, &#34;_&#34;+size++, value );</TD></TR><TR CLASS="z"><TD CLASS="l">318</TD><TD>                        }</TD></TR><TR><TD CLASS="l">319</TD><TD> </TD></TR><TR><TD CLASS="l">320</TD><TD>                        ///**</TD></TR><TR><TD CLASS="l">321</TD><TD>                        // * Dodaje pusta zmienna referencyjna do kolekcji.</TD></TR><TR><TD CLASS="l">322</TD><TD>                        // */</TD></TR><TR><TD CLASS="l">323</TD><TD>                        /*</TD></TR><TR><TD CLASS="l">324</TD><TD>                        protected final void writeNull ()</TD></TR><TR><TD CLASS="l">325</TD><TD>                        {</TD></TR><TR><TD CLASS="l">326</TD><TD>                                addReference ( ID, &#34;_&#34;+size++, &#34;reference&#34;, &#34;null&#34; );</TD></TR><TR><TD CLASS="l">327</TD><TD>                        }</TD></TR><TR><TD CLASS="l">328</TD><TD>                        */</TD></TR><TR><TD CLASS="l">329</TD><TD>                }</TD></TR><TR><TD CLASS="l">330</TD><TD> </TD></TR><TR><TD CLASS="l">331</TD><TD>                /**</TD></TR><TR><TD CLASS="l">332</TD><TD>                 * Pozwala na zapis map do strumienia w formacie RDF.</TD></TR><TR><TD CLASS="l">333</TD><TD>                 * </TD></TR><TR><TD CLASS="l">334</TD><TD>                 * @author Daniel Kur</TD></TR><TR><TD CLASS="l">335</TD><TD>                 */</TD></TR><TR><TD CLASS="l">336</TD><TD>                protected class Map</TD></TR><TR><TD CLASS="l"><A NAME="10">337</A></TD><TD>                {</TD></TR><TR><TD CLASS="l">338</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">339</TD><TD>                         * Unikalny identyfikator dla mapy. </TD></TR><TR><TD CLASS="l">340</TD><TD>                         */</TD></TR><TR CLASS="c"><TD CLASS="l">341</TD><TD>                        private final String ID;</TD></TR><TR><TD CLASS="l">342</TD><TD>                        </TD></TR><TR><TD CLASS="l">343</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">344</TD><TD>                         * Typ klucza mapy. </TD></TR><TR><TD CLASS="l">345</TD><TD>                         */</TD></TR><TR><TD CLASS="l">346</TD><TD>                        private final String KEY;</TD></TR><TR><TD CLASS="l">347</TD><TD>                        </TD></TR><TR><TD CLASS="l">348</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">349</TD><TD>                         * Typ wartosci mapy. </TD></TR><TR><TD CLASS="l">350</TD><TD>                         */</TD></TR><TR><TD CLASS="l">351</TD><TD>                        private final String VAL;</TD></TR><TR><TD CLASS="l">352</TD><TD>                        </TD></TR><TR><TD CLASS="l">353</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">354</TD><TD>                         * Licznik ilosci kluczy w mapie. </TD></TR><TR><TD CLASS="l">355</TD><TD>                         */</TD></TR><TR CLASS="c"><TD CLASS="l">356</TD><TD>                        private int size = 1;</TD></TR><TR><TD CLASS="l">357</TD><TD> </TD></TR><TR><TD CLASS="l">358</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">359</TD><TD>                         * Reprezentuje mape w formacie RDF.</TD></TR><TR><TD CLASS="l">360</TD><TD>                         * </TD></TR><TR><TD CLASS="l">361</TD><TD>                         * @param type - typ mapy.</TD></TR><TR><TD CLASS="l">362</TD><TD>                         * @param key - typ klucza.</TD></TR><TR><TD CLASS="l">363</TD><TD>                         * @param value - typ wartosci. </TD></TR><TR><TD CLASS="l">364</TD><TD>                         */</TD></TR><TR CLASS="c"><TD CLASS="l">365</TD><TD>                        protected Map (final String type, final String key, final String value)</TD></TR><TR><TD CLASS="l"><A NAME="12">366</A></TD><TD>                        {</TD></TR><TR CLASS="c"><TD CLASS="l">367</TD><TD>                                this.ID = type + &#34;,&#34; + key + &#34;,&#34; + value + &#34;#ID&#34; + id++;</TD></TR><TR CLASS="c"><TD CLASS="l">368</TD><TD>                                this.KEY = key;</TD></TR><TR CLASS="c"><TD CLASS="l">369</TD><TD>                                this.VAL = value;</TD></TR><TR CLASS="c"><TD CLASS="l">370</TD><TD>                        }</TD></TR><TR><TD CLASS="l">371</TD><TD> </TD></TR><TR><TD CLASS="l">372</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">373</TD><TD>                         * Dodaje zmienna referencyjna do klucza w mapie.</TD></TR><TR><TD CLASS="l">374</TD><TD>                         * </TD></TR><TR><TD CLASS="l"><A NAME="14">375</A></TD><TD>                         * @return zmienna referencyjna w reprezentacji RDF.</TD></TR><TR><TD CLASS="l">376</TD><TD>                         */</TD></TR><TR><TD CLASS="l">377</TD><TD>                        protected final Reference writeKey ()</TD></TR><TR><TD CLASS="l">378</TD><TD>                        {</TD></TR><TR CLASS="c"><TD CLASS="l">379</TD><TD>                                Reference ref = new Reference (KEY);</TD></TR><TR CLASS="c"><TD CLASS="l">380</TD><TD>                                addReference ( ID, &#34;_&#34;+size, &#34;key&#34;, ref.ID );</TD></TR><TR CLASS="c"><TD CLASS="l">381</TD><TD>                                return ref;</TD></TR><TR><TD CLASS="l">382</TD><TD>                        }</TD></TR><TR><TD CLASS="l">383</TD><TD> </TD></TR><TR><TD CLASS="l">384</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">385</TD><TD>                         * Dodaje zmienna referencyjna opakowywujaca typ primitywny do klucza w mapie.</TD></TR><TR><TD CLASS="l">386</TD><TD>                         * </TD></TR><TR><TD CLASS="l"><A NAME="15">387</A></TD><TD>                         * @param value - wartosc zmiennej.</TD></TR><TR><TD CLASS="l">388</TD><TD>                         */</TD></TR><TR><TD CLASS="l">389</TD><TD>                        protected final void writePrimitiveKey (final String value)</TD></TR><TR><TD CLASS="l">390</TD><TD>                        {</TD></TR><TR CLASS="c"><TD CLASS="l">391</TD><TD>                                addPrimitive ( ID, &#34;key&#34;, &#34;_&#34;+size, value );</TD></TR><TR CLASS="c"><TD CLASS="l">392</TD><TD>                        }</TD></TR><TR><TD CLASS="l">393</TD><TD>                        </TD></TR><TR><TD CLASS="l">394</TD><TD>                        ///**</TD></TR><TR><TD CLASS="l">395</TD><TD>                        // * Dodaje pusta zmienna referencyjna do klucza w mapie.</TD></TR><TR><TD CLASS="l">396</TD><TD>                        // */</TD></TR><TR><TD CLASS="l">397</TD><TD>                        /*</TD></TR><TR><TD CLASS="l">398</TD><TD>                        protected final void writeNullKey ()</TD></TR><TR><TD CLASS="l">399</TD><TD>                        {</TD></TR><TR><TD CLASS="l">400</TD><TD>                                addReference ( ID, &#34;_&#34;+size, &#34;key&#34;, &#34;null&#34; );</TD></TR><TR><TD CLASS="l">401</TD><TD>                        }</TD></TR><TR><TD CLASS="l">402</TD><TD>                        */</TD></TR><TR><TD CLASS="l">403</TD><TD> </TD></TR><TR><TD CLASS="l">404</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">405</TD><TD>                         * Dodaje zmienna referencyjna do wartosci w mapie.</TD></TR><TR><TD CLASS="l">406</TD><TD>                         * </TD></TR><TR><TD CLASS="l"><A NAME="16">407</A></TD><TD>                         * @return zmienna referencyjna w reprezentacji RDF.</TD></TR><TR><TD CLASS="l">408</TD><TD>                         */</TD></TR><TR><TD CLASS="l">409</TD><TD>                        protected final Reference writeValue ()</TD></TR><TR><TD CLASS="l">410</TD><TD>                        {</TD></TR><TR CLASS="c"><TD CLASS="l">411</TD><TD>                                Reference ref = new Reference (VAL);</TD></TR><TR CLASS="c"><TD CLASS="l">412</TD><TD>                                addReference ( ID, &#34;_&#34;+size++, &#34;value&#34;, ref.ID );</TD></TR><TR CLASS="c"><TD CLASS="l">413</TD><TD>                                return ref;</TD></TR><TR><TD CLASS="l">414</TD><TD>                        }</TD></TR><TR><TD CLASS="l">415</TD><TD> </TD></TR><TR><TD CLASS="l">416</TD><TD>                        /**</TD></TR><TR><TD CLASS="l">417</TD><TD>                         * Dodaje zmienna referencyjna opakowywujaca typ primitywny do wartosci w mapie.</TD></TR><TR><TD CLASS="l">418</TD><TD>                         * </TD></TR><TR><TD CLASS="l"><A NAME="11">419</A></TD><TD>                         * @param value - wartosc zmiennej.</TD></TR><TR><TD CLASS="l">420</TD><TD>                         */</TD></TR><TR><TD CLASS="l">421</TD><TD>                        protected final void writePrimitiveValue (final String value)</TD></TR><TR><TD CLASS="l">422</TD><TD>                        {</TD></TR><TR CLASS="z"><TD CLASS="l">423</TD><TD>                                addPrimitive ( ID, &#34;value&#34;, &#34;_&#34;+size++, value );</TD></TR><TR CLASS="z"><TD CLASS="l">424</TD><TD>                        }</TD></TR><TR><TD CLASS="l">425</TD><TD> </TD></TR><TR><TD CLASS="l">426</TD><TD>                        ///**</TD></TR><TR><TD CLASS="l">427</TD><TD>                        // * Dodaje pusta zmienna referencyjna do wartosci w mapie.</TD></TR><TR><TD CLASS="l">428</TD><TD>                        // */</TD></TR><TR><TD CLASS="l">429</TD><TD>                        /*</TD></TR><TR><TD CLASS="l">430</TD><TD>                        protected final void writeNullValue ()</TD></TR><TR><TD CLASS="l">431</TD><TD>                        {</TD></TR><TR><TD CLASS="l">432</TD><TD>                                addReference ( ID, &#34;_&#34;+size++, &#34;value&#34;, &#34;null&#34; );</TD></TR><TR><TD CLASS="l">433</TD><TD>                        }</TD></TR><TR><TD CLASS="l">434</TD><TD>                         */</TD></TR><TR><TD CLASS="l">435</TD><TD>                }</TD></TR><TR><TD CLASS="l">436</TD><TD>        }</TD></TR><TR><TD CLASS="l">437</TD><TD> </TD></TR><TR><TD CLASS="l">438</TD><TD>        /**</TD></TR><TR><TD CLASS="l">439</TD><TD>         * Dodaje do strumienia serializowana instancje klasy w formacie RDF.</TD></TR><TR><TD CLASS="l">440</TD><TD>         * </TD></TR><TR><TD CLASS="l"><A NAME="9">441</A></TD><TD>         * @param type - nazwa typu serializowanej klasy.</TD></TR><TR><TD CLASS="l">442</TD><TD>         */</TD></TR><TR><TD CLASS="l">443</TD><TD>        protected final Reference writeClass ( final String type )</TD></TR><TR><TD CLASS="l">444</TD><TD>        {</TD></TR><TR CLASS="c"><TD CLASS="l">445</TD><TD>                Reference ref = new Reference ( type );</TD></TR><TR CLASS="c"><TD CLASS="l">446</TD><TD>                addReference ( &#34;serialization&#34;, type, &#34;object&#34;, ref.ID );</TD></TR><TR CLASS="c"><TD CLASS="l">447</TD><TD>                return ref;</TD></TR><TR><TD CLASS="l">448</TD><TD>        }</TD></TR><TR><TD CLASS="l">449</TD><TD> </TD></TR><TR><TD CLASS="l">450</TD><TD>        /**</TD></TR><TR><TD CLASS="l">451</TD><TD>         * Dodaje do strumienia wskaznik na juz istniejaca referencje w formacie RDF.</TD></TR><TR><TD CLASS="l">452</TD><TD>         * </TD></TR><TR><TD CLASS="l">453</TD><TD>         * @param name - nazwa referencji.</TD></TR><TR><TD CLASS="l"><A NAME="3">454</A></TD><TD>         * @param identifier - referencja na ktora ma wskazywac.</TD></TR><TR><TD CLASS="l">455</TD><TD>         */</TD></TR><TR><TD CLASS="l">456</TD><TD>        protected final void writePointer ( final String name, final String identifier )</TD></TR><TR><TD CLASS="l">457</TD><TD>        {</TD></TR><TR CLASS="z"><TD CLASS="l">458</TD><TD>                addReference ( &#34;serialization&#34;, name, &#34;object&#34;, identifier );</TD></TR><TR CLASS="z"><TD CLASS="l">459</TD><TD>        }</TD></TR><TR><TD CLASS="l">460</TD><TD> </TD></TR><TR><TD CLASS="l">461</TD><TD>        /**</TD></TR><TR><TD CLASS="l">462</TD><TD>         * Dodaje do strumienia tekst komentarza w formacie RDF.</TD></TR><TR><TD CLASS="l">463</TD><TD>         * </TD></TR><TR><TD CLASS="l"><A NAME="a">464</A></TD><TD>         * @param comment - tresc dodawanego komentarza</TD></TR><TR><TD CLASS="l">465</TD><TD>         */</TD></TR><TR><TD CLASS="l">466</TD><TD>        protected final void writeComment (final String comment)</TD></TR><TR><TD CLASS="l">467</TD><TD>        {</TD></TR><TR CLASS="c"><TD CLASS="l">468</TD><TD>                addComment (comment);</TD></TR><TR CLASS="c"><TD CLASS="l">469</TD><TD>        }</TD></TR><TR><TD CLASS="l">470</TD><TD> </TD></TR><TR><TD CLASS="l">471</TD><TD>        ///**</TD></TR><TR><TD CLASS="l">472</TD><TD>        // * Dodaje do strumienia deklaracje w formacie RDF.</TD></TR><TR><TD CLASS="l">473</TD><TD>        // * </TD></TR><TR><TD CLASS="l">474</TD><TD>        // * @param id - unikalny identyfikator obiektu nadrzednego.</TD></TR><TR><TD CLASS="l">475</TD><TD>        // * @param name - nazwa deklarowanej zmiennej.</TD></TR><TR><TD CLASS="l">476</TD><TD>        // * @param type - typ deklarowanej zmiennej.</TD></TR><TR><TD CLASS="l">477</TD><TD>        // * @param refId - unikalny identyfikator obiektu podrzednego.</TD></TR><TR><TD CLASS="l">478</TD><TD>        // */</TD></TR><TR><TD CLASS="l">479</TD><TD>        /*</TD></TR><TR><TD CLASS="l">480</TD><TD>        protected final void writeStatement (final String id, final String name, final String refId)</TD></TR><TR><TD CLASS="l">481</TD><TD>        {</TD></TR><TR><TD CLASS="l">482</TD><TD>                addStatement (id, name, refId);</TD></TR><TR><TD CLASS="l">483</TD><TD>        }</TD></TR><TR><TD CLASS="l">484</TD><TD>         */</TD></TR><TR><TD CLASS="l">485</TD><TD> </TD></TR><TR><TD CLASS="l">486</TD><TD>        /**</TD></TR><TR><TD CLASS="l">487</TD><TD>         * Dodaje do strumienia wyrazenie w formacie RDF.</TD></TR><TR><TD CLASS="l">488</TD><TD>         * </TD></TR><TR><TD CLASS="l">489</TD><TD>         * @param id - unikalny identyfikator obiektu nadrzednego.</TD></TR><TR><TD CLASS="l">490</TD><TD>         * @param name - nazwa zmiennej.</TD></TR><TR><TD CLASS="l">491</TD><TD>         * @param type - typ zmiennej.</TD></TR><TR><TD CLASS="l"><A NAME="2">492</A></TD><TD>         * @param value - wartosc zmiennej.</TD></TR><TR><TD CLASS="l">493</TD><TD>         */</TD></TR><TR><TD CLASS="l">494</TD><TD>        protected final void writeExpression (final String id, final String type, final String name, final String value)</TD></TR><TR><TD CLASS="l">495</TD><TD>        {</TD></TR><TR CLASS="z"><TD CLASS="l">496</TD><TD>                addExpression (id, type, name, value);</TD></TR><TR CLASS="z"><TD CLASS="l">497</TD><TD>        }</TD></TR><TR><TD CLASS="l">498</TD><TD> </TD></TR><TR><TD CLASS="l">499</TD><TD>        /**</TD></TR><TR><TD CLASS="l">500</TD><TD>         * Otwiera strumien z serializowanymi obiektami.</TD></TR><TR><TD CLASS="l"><A NAME="5">501</A></TD><TD>         */</TD></TR><TR><TD CLASS="l">502</TD><TD>        private final void open ()</TD></TR><TR><TD CLASS="l">503</TD><TD>        {</TD></TR><TR><TD CLASS="l">504</TD><TD>                try {</TD></TR><TR CLASS="c"><TD CLASS="l">505</TD><TD>                        rdf.startRDF ();</TD></TR><TR CLASS="z"><TD CLASS="l">506</TD><TD>                } catch (RDFHandlerException e) {</TD></TR><TR CLASS="z"><TD CLASS="l">507</TD><TD>                        System.err.println (&#34;Nie moge otworzyc strumienia danych.&#34;);</TD></TR><TR><TD CLASS="l">508</TD><TD>                }</TD></TR><TR CLASS="c"><TD CLASS="l">509</TD><TD>        }</TD></TR><TR><TD CLASS="l">510</TD><TD> </TD></TR><TR><TD CLASS="l">511</TD><TD>        /**</TD></TR><TR><TD CLASS="l">512</TD><TD>         * Oproznia strumien z serializowanymi obiektami.</TD></TR><TR><TD CLASS="l"><A NAME="1">513</A></TD><TD>         */</TD></TR><TR><TD CLASS="l">514</TD><TD>        protected final void flush ()</TD></TR><TR><TD CLASS="l">515</TD><TD>        {</TD></TR><TR><TD CLASS="l">516</TD><TD>                try {</TD></TR><TR CLASS="z"><TD CLASS="l">517</TD><TD>                        java.lang.reflect.Field f = rdf.getClass ().getDeclaredField (&#34;writer&#34;);</TD></TR><TR CLASS="z"><TD CLASS="l">518</TD><TD>                        f.setAccessible (true);</TD></TR><TR CLASS="z"><TD CLASS="l">519</TD><TD>                        java.lang.reflect.Method m = f.get (rdf).getClass ().getDeclaredMethod (&#34;flush&#34;);</TD></TR><TR CLASS="z"><TD CLASS="l">520</TD><TD>                        m.setAccessible (true);</TD></TR><TR CLASS="z"><TD CLASS="l">521</TD><TD>                        m.invoke (f.get (rdf), (Object[])null);</TD></TR><TR CLASS="z"><TD CLASS="l">522</TD><TD>                } catch (Exception e) {</TD></TR><TR CLASS="z"><TD CLASS="l">523</TD><TD>                        System.err.println (&#34;Nie moge oproznic strumienia danych.&#34;);</TD></TR><TR><TD CLASS="l">524</TD><TD>                }</TD></TR><TR CLASS="z"><TD CLASS="l">525</TD><TD>        }</TD></TR><TR><TD CLASS="l">526</TD><TD> </TD></TR><TR><TD CLASS="l">527</TD><TD>        /**</TD></TR><TR><TD CLASS="l">528</TD><TD>         * Zamyka strumien z serializowanymi obiektami.</TD></TR><TR><TD CLASS="l"><A NAME="4">529</A></TD><TD>         */</TD></TR><TR><TD CLASS="l">530</TD><TD>        protected final void close ()</TD></TR><TR><TD CLASS="l">531</TD><TD>        {</TD></TR><TR><TD CLASS="l">532</TD><TD>                try {</TD></TR><TR CLASS="c"><TD CLASS="l">533</TD><TD>                        rdf.endRDF ();</TD></TR><TR CLASS="z"><TD CLASS="l">534</TD><TD>                } catch (RDFHandlerException e)        {</TD></TR><TR CLASS="z"><TD CLASS="l">535</TD><TD>                        System.err.println ( &#34;Nie moge zamknac strumienia danych.&#34;);</TD></TR><TR><TD CLASS="l">536</TD><TD>                }</TD></TR><TR CLASS="c"><TD CLASS="l">537</TD><TD>        }</TD></TR><TR><TD CLASS="l">538</TD><TD>}</TD></TR></TABLE><P></P><TABLE CLASS="hdft" CELLSPACING="0" WIDTH="100%"><TR><TD CLASS="nv">[<A HREF="../aktualny.html">all classes</A>][<A HREF="3.html">com.googlecode.project4uz.encoder</A>]</TD></TR><TR><TD CLASS="tl"><A HREF="http://www.eclemma.org/support.html">EMMA 2.0.5312 EclEmma Fix 2</A> (C) Vladimir Roubtsov</TD></TR></TABLE></BODY></HTML>